package com.example.medical_delivery_system.api.admin.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Param：20201003013
 * Author：李镇荣
 * Data：2022/12/21
 */
@Data
public class ProductEditParam {

    @ApiModelProperty("商品id")
    @NotNull(message = "商品id不能为空")
    @Min(value = 1, message = "商品id最低为1")
    private Long productId;

    @ApiModelProperty("商品名称")
    @NotEmpty(message = "商品名称不能为空")
    private String name;

    @ApiModelProperty("商品详细")
    @NotEmpty(message = "商品详细不能为空")
    private String details;

    @ApiModelProperty("商品价格")
    @NotNull(message = "商品价格不能为空")
    @Min(value = 1, message = "商品价格最低为1")
    private Long price;
}
